using System;
using System.Collections.Generic;
using System.Text;

namespace JBORPG.Net
{
    [Serializable()]
    public class Invoker
    {
        private String m_Type;
        private String m_Method;
        private Object[] m_Parameters;
        private Object m_Return = null;

        public Invoker(String type, String method, params Object[] parameters)
        {
            m_Type = type;
            m_Method = method;
            m_Parameters = parameters;
        }

        public Invoker(String shortMethod, params Object[] parameters)
        {
            m_Type = null;
            m_Method = shortMethod;
            m_Parameters = parameters;
        }

        public Object Return
        {
            get
            {
                return m_Return;
            }
            set
            {
                m_Return = value;
            }
        }

        public String Type
        {
            get
            {
                return m_Type;
            }
        }

        public String Method
        {
            get
            {
                return m_Method;
            }
        }

        public Object[] Parameters
        {
            get
            {
                return m_Parameters;
            }
        }
    }
}
